package com.blb.service.impl;

import com.blb.entity.Certificate;
import com.blb.entity.User;
import com.blb.mapper.UserMapper;
import com.blb.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author PangLei
 * @since 2019-12-23
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {

    @Resource
    private UserMapper userMapper;



    @Override
    public void updateaddress(String id, String province, String city, String region) {

        userMapper.updateaddress(id, province, city, region);


    }

    @Override
    public void updateNickname(String id, String nickname) {
        userMapper.updateNickname(id, nickname);
    }

    @Override
    public void updateSex(String id, String sex) {
        userMapper.updateSex(id, sex);
    }

    @Override
    public void updateEmail(String id, String email) {
        userMapper.updateEmail(id, email);


    }

    @Override
    public void updateSignature(String id, String signature) {
        userMapper.updatesignature(id, signature);
    }
}
